<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_461863_75myxw2qtiuj714i.css">
    <link rel="stylesheet" href="css/paging.css">
    <title>js原生分页</title>
</head>
<body>
    <div class="page_div"></div>    
    <script src="js/paging.js"></script>
    <script>
        new Paging(document.getElementsByClassName('page_div')[0],{
            totalPage:12,
            pageNow:1,
            totalSize:20,
            callBack(page){
                console.log(page);
            }
        })
    </script>
</body>
</html>